package com.zhuoyue.biz.core.command;

/**
 * @author wjming
 * @ClassName: CmdParams
 * @Description: CMD控制常量
 * @Date 2021-07-09 19:38
 */
public interface CmdParams {
    interface ControlType {

        /**
         * 直接控制
         */
        String CONTROL_TYPE_DIRECT = "DIRECT_CONTROL";

        /**
         * 延时控制
         * 该模式控制暂时不做
         */
        String CONTROL_TYPE_DELAYED = "DELAYED_CONTROL";

        String RESET_ELECTRICITY = "RESET_ELECTRICITY";
    }

    /**
     * 面板路数
     */
    interface Panel {
        String WAY_1 = "1";
        String WAY_2 = "2";
        String WAY_3 = "3";
        String WAY_4 = "4";
        String WAY_5 = "5";
        String WAY_6 = "6";
        String WAY_7 = "7";
        String WAY_8 = "8";
    }

    /**
     * 数据OD
     */
    interface Od0Faa {
        String WAY_1 = "00018000";
        String WAY_2 = "000C0000";
        String WAY_3 = "00600000";
        String WAY_4 = "03000000";
    }

    /**
     * 多路控制器od
     */
    interface Od0Fab {
        String WAY_1 = "00008000";
        String WAY_2 = "00020000";
        String WAY_3 = "00080000";
        String WAY_4 = "00200000";
        String WAY_5 = "00800000";
        String WAY_6 = "02000000";
        String WAY_7 = "08000000";
        String WAY_8 = "20000000";
    }

    /**
     * 计量类od
     */
    interface Od0Fc8 {
        String WAY_1 = "00020000";
    }

    /**
     * 控制参数
     * 窗帘
     */
    interface ControlParam {
        String SWITCH_STOP = "SWITCH_STOP";
        String PERCENT = "PERCENT";
        String CHECK = "CHECK";
    }

    /**
     * 开关面板数据正模型
     */
    interface CmdModel {
        /**
         * (0FAA)开关面板数据帧模型
         */
        String PANEL_0FAA = "0201${gatewayMac}${deviceMac}0FAAFF06${childOd}01${status}";
        String PANEL_0FAB = "0201${gatewayMac}${deviceMac}0FABFF05${childOd}${status}";
    }
}
